﻿using InternetSpiderLib.Scenes;
using System.Collections.Generic;

namespace InternetSpiderLib.Scenes.Actions
{
    /// <summary>
    /// 列表场景动作
    /// </summary>
    public class ListSceneAction : ISceneAction
    {
        public ISceneAction[] Actions { get; set; }

        public void Run(SceneContext data)
        {
            foreach (var item in Actions ?? new ISceneAction[0])
            {
                item.Run(data);
            }
        }
    }
}